package com.mrjy.weixin.dao;

import java.util.List;

import com.mrjy.common.entity.WeixinMenu;
import com.mrjy.common.entity.WeixinMenuGroup;

public interface IWeixinMenuDao {
	
	//统计总数
	int countWeiXinMenuGroup(WeixinMenuGroup weixinMenuGroup);
	
	//分页查询
	List<WeixinMenuGroup> queryPageWeiXinMenuGroup(WeixinMenuGroup weixinMenuGroup);

	//查询根据id
	WeixinMenuGroup queryById(int id);

	//查询菜单树
	List<WeixinMenu> queryMenuTree(int id);

	//删除菜单
	Integer deleteMenuByGid(int[] ids);
	//删除组
	Integer deleteGroupById(int[] ids);

	//新增菜单
	int addMenuByA(List<WeixinMenu> list );

	//新增菜单组
	int addMenuGroup(WeixinMenuGroup weixinMenuGroup);

	//新增菜单
	int addMenuByU(WeixinMenu weixinMenu);

	//更新菜单
	int updateMenuByU(WeixinMenu weixinMenu);

	//更新组
	int updateGroupByUId(WeixinMenuGroup weixinMenuGroup);
	
	//新增菜单
	int addMenu(WeixinMenu weixinMenu);

	//删除db树
	int deleteMenu(int id);
	
}
